//
//  MessageTVCell.m
//  Logistics
//
//  Created by enzhoukeji on 2018/8/9.
//  Copyright © 2018年 puyue.com. All rights reserved.
//

#import "MessageTVCell.h"

@implementation MessageTVCell

-(void)loadViews {
    
    self.titleImage = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"touxiangMN"]];
    self.titleLabel = [UILabel labelWithSize:[UIFont systemFontOfSize:13] withColor:[UIColor blackColor] withText:@"认证消息"];
    self.timeLabel = [UILabel labelWithSize:[UIFont systemFontOfSize:10] withColor:[UIColor blackColor] withText:@"2018-08-09  22:33"];

    self.contentLabel = [UILabel labelWithSize:[UIFont systemFontOfSize:11] withColor:[UIColor blackColor] withText:@"千佛山大佛lasdlasdlkasdlk看来我看懂了李克强文两千万是电脑卡了大；索拉卡"];
    self.contentLabel.numberOfLines = 0;
    [self addSubview:self.titleImage];
    [self addSubview:self.titleLabel];
    [self addSubview:self.timeLabel];
    [self addSubview:self.contentLabel];
    
}
-(void)layoutViews {
    [self.titleImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(GTFixHeightFlaot(10));
        make.left.mas_equalTo(GTFixWidthFlaot(10));
        make.bottom.mas_equalTo(GTFixHeightFlaot(-10));
        make.width.mas_equalTo(GTFixHeightFlaot(40));
    }];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.titleImage.mas_right).offset(GTFixWidthFlaot(10));
        make.top.mas_equalTo(GTFixHeightFlaot(10));
        make.height.mas_equalTo(GTFixHeightFlaot(15));
        make.width.mas_equalTo(self.titleLabel.mas_width);
    }];
    [self.timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(GTFixHeightFlaot(8));
        make.right.mas_equalTo(GTFixHeightFlaot(-5));
        make.height.mas_equalTo(GTFixHeightFlaot(10));
        make.width.mas_equalTo(self.timeLabel.mas_width);
    }];
    [self.contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.titleLabel.mas_bottom).offset(GTFixHeightFlaot(5));
        make.left.mas_equalTo(self.titleImage.mas_right).offset(GTFixHeightFlaot(10));
        make.bottom.mas_equalTo(GTFixHeightFlaot(-10));
        make.right.mas_equalTo(GTFixHeightFlaot(-5));
    }];
}
@end
